package io.awen.modules.sign.service;

import com.baomidou.mybatisplus.extension.service.IService;
import io.awen.common.utils.PageUtils;
import io.awen.modules.sign.entity.SignCarDispatchEntity;
import io.awen.modules.sign.entity.SignContainerEntity;
import io.awen.modules.sign.entity.SignTaskEntity;
import io.awen.modules.sign.qo.SignTaskQo;

import java.util.List;
import java.util.Map;

/**
 * 收运任务表
 *
 * @author liu.wen
 * @email liu.wen@qq.com
 * @date 2022-08-10 00:47:08
 */
public interface SignTaskService extends IService<SignTaskEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils listByQo(SignTaskQo qo);

    PageUtils queryPageWeightTotalGroupByCar(SignTaskQo qo);

    public void autoTask(SignContainerEntity container, SignCarDispatchEntity dispatch);

    public void autoTask(SignCarDispatchEntity dispatch);

    void manualTask(SignTaskEntity task);

    PageUtils driverList(SignTaskQo qo);

    List<Map<String, Object>> weightTotalGroupByTimeLength(SignTaskQo qo);

    List<Map<String, Object>> weightTotalGroupByUnit(SignTaskQo qo);

    List<Map<String, Object>> weightTotalGroupByContainer(SignTaskQo qo);

    List<Map<String, Object>> weightTotalGroupByCar(SignTaskQo qo);

    List<Map<String, Object>> weightGroupByCarAndTime(SignTaskQo qo);

    Map<String, Object> totalByCar(SignTaskQo qo);

    List<Map<String,Object>> getDailyTotalReport(String startMonth,String endMonth);


    List<Map<String,Object>> getTotalByCar(String startMonth,String endMonth);


}

